<include file="Public/header" /> 

<!--主窗体-->
<div class="container app">
	<!--左侧菜单-->
	<include file="Public/sidebar" /> 
	<!--左侧菜单//-->
	
	<!-- mainCon -->
	<div id="mainCon" class="mainCon">
		<h4>佣金收入</h4>
		<div class="bk10"></div>
		<div>
		<form class="form-inline" method="get">
			<div class="form-group form-group-sm">
				<label for="username">获得佣金会员：</label>
				<input type="text" class="form-control" id="username" name="username" placeholder="获得佣金会员" value="<{$username}>">
			</div>
			<div class="form-group form-group-sm">
				<label for="buyusername">购买会员：</label>
				<input type="text" class="form-control" id="buyusername" name="buyusername" placeholder="购买会员" value="<{$buyusername}>">
			</div>
			<div class="bk10"></div>
			<div class="form-group form-group-sm">
				<label for="">支付时间：</label>
				<input type="text" class="form-control laydate-icon" id="start_time" name="start_time"  value="<{$start_time?($start_time|date='Y-m-d H:i:s',###):''}>" >
				<span>-</span>
				<input type="text" class="form-control laydate-icon" id="end_time" name="end_time"  value="<{$end_time?($end_time|date='Y-m-d H:i:s',###):''}>" >
			</div>

			<a class="btn btn-default btn-sm" href="<{:U(null,$_GET)}>?excel=1" > 佣金信息导出</a>
			<button type="submit" class="btn btn-default btn-sm">搜索</button>
		</form>
		</div>
		<div class="bk10"></div>
		<table class="table table-bordered table-hover">
			<tr>
				<th>编号</th>
				<th>支付时间</th>
				<th>获得佣金会员</th>
				<th>购买会员</th>
				<th>佣金（元）</th>
			<?php /* <th>备注</th> */?>
			</tr>

			<empty name="list">
				<tr><td colspan="5" style="text-align:center;color:#999">～暂无数据～</td></tr>
			<else /> 
				<foreach name="list" item="vo">
					<tr>
						<td><{$vo['id']}></td>
						<td><{$vo['createtime']|date="Y-m-d H:i:s",###}></td>
						<td><{$vo['username']}></td>
						<td><{$vo['buyusername']}></td>
						<td><{:round($vo['commission']/100,2)}></td>
					<?php 
					/*	
						<td>
							<{$vo['remark']}>
						</td>
					*/?>
					</tr>
				</foreach>
			</empty>
		</table>
		
		<div class="pagebar">
			<{$pager}>
		</div>
		
	</div>
	<!-- mainCon// -->
	
</div>
<!--主窗体//-->
<script>
$(function(){

	var start = {
		elem: '#start_time',
		format: 'YYYY/MM/DD hh:mm:ss',
		istime: true,
		istoday: false,
		choose: function(datas){
			 end.min = datas;
			 end.start = datas;
		}
	};
	var end = {
		elem: '#end_time',
		format: 'YYYY/MM/DD hh:mm:ss',
		istime: true,
		istoday: false,
		choose: function(datas){
			start.max = datas;
		}
	};
	laydate(start);
	laydate(end);
	
});
</script>

<include file="Public/footer" /> 